#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int n = 0;
    int minus = 0, ptnumber = 0, number = 0;
    float sum = 0;
    scanf("%d", &n);
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &number);
        if (number > 0)
        {
            sum += number;
            ptnumber++;
        }
        if (number < 0)
            minus++;
    }
    if (sum == 0)
        printf("%d %.1f", minus, sum);
    else
        printf("%d %.1f", minus, sum / ptnumber);
    return 0;
}